package com.samuel.jdbc.listener;

import javax.sql.RowSet;
import javax.sql.RowSetEvent;
import javax.sql.RowSetListener;

public class JDBCListener implements RowSetListener {

	@Override
	public void rowSetChanged(RowSetEvent event) {
		System.out.println("in rowSetChanged");
		RowSet rowset = (RowSet) event.getSource();
		System.out.println(rowset);
	}

	@Override
	public void rowChanged(RowSetEvent event) {
		System.out.println("in rowChanged");
		RowSet rowset = (RowSet) event.getSource();
		System.out.println(rowset);
	}

	@Override
	public void cursorMoved(RowSetEvent event) {
		System.out.println("in cursorMoved");
		RowSet rowset = (RowSet) event.getSource();
		System.out.println(rowset);
	}

}
